import { ref } from 'vue'
const socket = ref(null)
const messages= ref([])
const connect = () => {
    socket.value = new WebSocket('ws://localhost:8080')
    socket.value.onopen = () => {
        console.log('connected')
    }
    socket.value.onerror=(error) => {
        
    }
}